'use strict';

const Controller = require('egg').Controller;

class SomeController extends Controller {
  async list() {
    const ctx = this.ctx;
    const page = ctx.query.page || 1;
    const newsList = await ctx.service.some.list(page);
    await ctx.render('some/list.tpl', { list: newsList });
  }
}

module.exports = SomeController;
